package com.dfbz.springboot_project.mapper;

import com.dfbz.springboot_project.entity.AdminInfo;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface AdminInfoMapper extends Mapper<AdminInfo> {
    @Select("SELECT " +
            " r.role_name " +
            "FROM " +
            " admin_role ar, " +
            " role r " +
            "WHERE " +
            " ar.role_id = r.role_id " +
            "AND ar.admin_id = #{Aid}")
    List<String> selectRolesByAid(Integer Aid);
}
